<!doctype html>
<html>
<head>
    <title>简单文件传输</title>
    <meta charset="utf-8">
    <meta  content="multipart/form-data; charset=UTF-8">
    <link rel="shortcut icon" href="../img/index.png" type="image/png">
    <link rel="apple-touch-icon-precomposed" href="../img/index.png">
    <link href="../css/min.css" rel="stylesheet">
    <link href="../css/cpt.css" rel="stylesheet">
    <script async src="../js/js.js"></script>
</head>
<body>
<div class="akheader">
    <div class="ak-logo-box">
        <a href=""><img class="logo" src="../img/cc.jpg" width="80"/></a>
        <div class="funcs">
            <div class="func login" >
                <a href="#" rel="nofollow" style="color: #3DB4F1">欢迎</a>
            </div>

        </div>
    </div>
</div>

<div class="cpt">
    <div class="s-and-r">
        <div class="share" id="share_div">
            <div class="share-bar" id="share_bar">
                <div class="show-share active" id="show_share">
                    <div class="title">
                        <p>分</p>
                        <p>享</p>
                    </div>
                </div>

            </div>
            <div class="share-content" id="share_ops">
                <div class="share-types">
                    <div class="op active" id="show_share_file">
                        <span>文 件</span>
                    </div>
                </div>
<!--                添加-->
                <div class="share-action" id="share_file" >
                    <div id="select_file">
                        <div class="upload" data-up-size-limit="102400" id="upload">
                            <div class="fileBox" draggable='true' ondragstart="drag(event)" ondrop="drop(event)" ondragover="allowDrop(event)">
                                <span id="fileSpan">拖拽到该区域</span>
                                <p id="uploadfile"></p>
                                <form action="uploadFile" method="post" enctype="multipart/form-data">
                                <p class="fileInputP vm">
                                    <i id="pseudo_input">选择文件</i>
                                    <input type="file" id="fileInput" ref="fileInput" name="fileName" onchange="upload_with_input(event)" style="cursor: pointer; width: 200px;">
                                    <input class="btn"type="submit" value="上传文件"/>
                                </p>
                                </form>
                            </div>
                        </div>
                        <div class="login-hint" style="width: 100%;">
                            <div>默认有效期: 24小时&nbsp;&nbsp;<span style="color:#DAA520">如遇无法上传/下载，请检查机器时间设置是否正确</span></div>
                            <div>最大 100.0M，最多下载 10 次</div>
                            <input id="serv-uxtime" value="1576456912" type="hidden">
                        </div>
                    </div>

                </div>
<!--                    添加-->
                <div class="share-action" id="share_text" style="padding: 0;display: none;">
                    <div id="editor">
                    </div>
                    <div class="btn-box">
                        <button class="btn" id="save_text">提 交</button>
                    </div>
                </div>
                <div class="share-tag" id="show_tag" style="display: none;">
                    <div class="qr-box">
                        <canvas id="scanvas" ></canvas>
                    </div>
                    <div class="hint">
                        扫码即可下载/浏览，或使用如下提取码提取
                    </div>
                    <div class="tag">
                        <span id="stag_hint">4151</span>
                    </div>
                    <div class="re-share-box">
                        <button class="re-share" id="re_share">继续分享</button>
                    </div>
                </div>
            </div>
            <div class="share-content retrieve" id="retrieve_ops" style="display: none;">
                <div class="input-box">
                    <div>
                        <img width="300"height="300" src="../static/temp.jpg">
                    </div>
                    <div style="margin-top: 50px;">
                        <button class="btn" id="rbtn">提 取</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer">
    <div class="left-op">
        <span><a href="./about.html" target="_blank" style="color: #3DB4F1">使用说明</a></span>
    </div>
    <div class="center-op" id="donate" style="cursor:pointer;">
        <img src="https://f0cdn.anyknew.com/cptool/img/donate.png" width="20" alt="拷贝车 - 轻量级纯Web跨平台文件、文字分享工具">
    </div>
    <div>
        <a href="#"><img src="../img/index.png" width="80" alt="轻量级纯Web跨平台文件、文字分享工具"></a>
    </div>
</div>
<div class="fz-loading-mask" id="fz_loading_mask">
    <span class="loading"></span>
    <span class="load-hint" id="fz_loading_hint">努力加载中, 马上就好</span>
</div>
<script src="../js/min.js"></script>
<script src="../js/cpt.js"></script>
<script src="../js/quill.js"></script>
<script>
    $(document).ready(function () {
        $('#donate').click(function () {
            $("#donate_modal").show()
        })
        $('#cloase_modal').click(function () {
            $("#donate_modal").hide()
        })
    });
    var toolbarOptions = [
        [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
        ['bold', 'strike'],
        [{ 'color': [] }],
        [{ 'align': [] }],
        ['code-block'],
        ['clean']
    ];
    var quill = new Quill('#editor', {
        modules: {
            toolbar: toolbarOptions
        },
        placeholder: '5000字以内, "格式清除"为工具栏最后一个图标',
        theme: 'snow',
    });
    var toolbar = quill.getModule('toolbar');
</script>
<script>
    $(document).ready(function() {
        msite = false;
        size_limit = parseInt($("#upload").attr("data-up-size-limit"));
    });
</script>

</body>
</html>
